public class Test {
    public static void main(String[] args) {

    }
    public void rotate(int[] nums, int k) {
        int n=nums.length;
        int []nums2=new int[nums.length];
        for(int i=0;i<nums.length;i++){
            nums2[(i+k)%n]=nums[i];
        }



    }
}
